/*
 * @Author: zhang_gen_yuan
 * @Date: 2021-06-10 23:15:29
 * @LastEditTime: 2021-06-12 15:59:05
 * @Descripttion: 
 */
import { RouteRecordRaw } from 'vue-router';
import Layout from '/@/layout/index.vue';
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Layout',
    redirect: '/home',
    component: Layout,
    meta: {
      title: '😊',
      requireAuth: true
    },
    children: [
      {
        path: '/home',
        name: 'Home',
        component: () => import('/@/views/home/index.vue'),
        meta: {
          title: '首页',
          requireAuth: true
        }
      },
      {
        path: '/demo',
        name: 'Demo',
        component: () => import('/@/views/demo/index.vue'),
        meta: {
          title: '测试',
          requireAuth: true
        }
      }
    ]
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('/@/views/login/index.vue'),
    meta: {
      title: '登录',
      requireAuth: false
    }
  }
]

export default routes;